<#assign parameters = tag.parameters/>
<div class="input-group date" data-toggle="date" <#rt/>
     data-format="${parameters.format?default('YYYY-MM-DD')?html}"<#rt/>
<#include "/${parameters.theme}/scripting-events.ftl"/><#rt/>>
    <input type="text" autocomplete="off" <#rt/>
           name="${parameters.name?default(parameters.id)?html}"<#rt/>
    <#if parameters.id?has_content>
           id="${parameters.id?html}"<#rt/>
    </#if>
    <#if parameters.size??>
           size="${parameters.size?html}"<#rt/>
    </#if>
    <#if placeholder??>
           placeholder="${placeholder?html}"<#rt/>
    <#else>
        <#if parameters.placeholder??>
           placeholder="${parameters.placeholder?html}"<#rt/>
        </#if>
    </#if>
    <#if parameters.disabled?default(false)>
           disabled="disabled"<#rt/>
    </#if>
    <#if inputValue??>
           value="${inputValue}" <#rt/>
    <#else>
        <#if parameters.value??>
            <#if parameters.value == "now">
           value="${.now?string["yyyy-MM-dd"]}" <#rt/>
            <#else>
           value="${parameters.value}" <#rt/>
            </#if>
        </#if>
    </#if><#rt/>
    <#include "/${parameters.theme}/css.ftl"/>
    <#include "/${parameters.theme}/validator.ftl"/>

    />
    <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
<#rt/>
